package cn.sh.yhk;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import java.security.Principal;
import java.util.List;

@RestController
public class UserController {

    /**
     * 资源服务器提供的受保护接口
     *
     * @param principal
     * @return
     */
    @RequestMapping("/5455")

    public List<String> user(Principal principal) {

        return AdminApplication.list;
    }

}